Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

contracts: Make chain extension state types public #12032

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

athei
Copy link
Member

@athei athei commented Aug 15, 2022

Downstream code sometimes need to name those state types in order to write code that is generic over those states. Hence we make them public but introduce a new Sealed trait to prevent downstream code from implementing those state traits for their own types.

cc @xgreenx

@athei athei added A0-please_review Pull request needs code review. B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit. labels Aug 15, 2022
Copy link
Contributor

@xgreenx xgreenx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Looks good=)

@HCastano
Copy link
Contributor

bot merge

@paritytech-processbot paritytech-processbot bot merged commit e7aa858 into master Aug 17, 2022
@paritytech-processbot paritytech-processbot bot deleted the at/sealed-chainextension branch August 17, 2022 18:19
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants